package com.zzt.questionbankquestion.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/*
 *   Create by zzt
 *   2020/2/2
 *   试题基本对象
 */

@Entity
@Table(name = "question")
@Data
@AllArgsConstructor
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@ToString
public class Question {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;//题目id
    private String questionDescribe;//题目描述
    @Column(length = 20)
    private String difficulty;//题目难度
    @Column(length = 30)
    private String questionType;//题目类型
}
